package com.system.appointment.feign;

import com.system.appointment.bean.Bill;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @className: BillServiceFeign
 * @description: 账单Feign
 * @author: Li Chuanwei
 * @date: 2023/11/12 15:35
 * @Company: Copyright [日期] by [作者或个人]
 **/
@FeignClient(value = "bill-service", path = "/bill")
public interface BillServiceFeign {
    @PostMapping("/save")
    boolean saveBill(Bill bill);

    @PostMapping("/saveGet")
    Bill saveGetBill(Bill bill);

    @DeleteMapping("/del/{id}")
    boolean removeBillById(@PathVariable("id") int id);

    @PutMapping("/update")
    boolean modifyBill(Bill bill);

    @GetMapping("/get/{id}")
    Bill getBillById(@PathVariable("id") int id);

    @GetMapping("/get/list")
    List<Bill> listAllBills();
}
